# 辗转相除法用于求最大公约数和真分数,还有待完善我的代码逻辑还有接口调用状态
def DivideAndTurn(x, y):
    if x > y:
        Max = x
        Min = y
    else:
        Max = y
        Min = x
    x = Max
    y = Min
    i = Max%Min
    if i != 0:
        while i > 0:
            Max = Min
            Min = i
            i = Max%Min
    y = int(y/Min)
    x = int(x/Min)
    if x != y:
        return [x, y]
    else:
        return '1'

while 1:
    print("This is DivideAndTurn and need input two Numbers (exp: Num1: 7, Num2: 8)")
    Num1 = int(input("Please input Num1: "))
    Num2 = int(input("Please input Num1: "))
    result = DivideAndTurn(Num1, Num2)
    print(result)